<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
    <h1>图书管理系统  <a href="javascript:;">添加</a></h1>
   
    <table id='book'>
        <tr>
            <th>编号</th>
            <th>名称</th>
            <th>作者</th>
            <th>分类</th>
            <th>描述</th>
            <th>操作</th>
        </tr>
        <script type='text/template' id='indexTpl'>
            {{each list}}
            <tr>
                    <td>{{$value.id}}</td>
                    <td>{{$value.name}}</td>
                    <td>{{$value.author}}</td>
                    <td>{{$value.category}}</td>
                    <td>{{$value.description}}</td>
                    <td><a href="javascript:;">修改</a>|<a href="javascript:;">删除</a></td>
            </tr>
            {{/each}}
        </script>
    </table>
</body>
</html>
<script src='js/jquery.js'></script>
<script src='js/template-web.js'></script>
<script src='js/index.js'></script>

